//
//  AY_BookSubStackView.m
//  AiYue
//
//  Created by boWen on 2023/10/19.
//

#import "AY_BookSubStackView.h"

@implementation AY_BookSubStackView

- (instancetype)initWithFrame:(CGRect)frame {
    if([super initWithFrame:frame]) {
        self.topLabel = [AYTool createLabelWithFrame:CGRectZero andText:nil andTextColor:COLOR(@"#010101") andBgColor:nil andFont:[UIFont boldSystemFontOfSize:YNUM(20)] andLines:1 andRadius:0 andAddSubView:self];
        [self.topLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self).offset(YNUM(-7));
            make.centerX.equalTo(self);
            make.height.mas_equalTo(YNUM(24));
        }];
        
        self.downLabel = [AYTool createLabelWithFrame:CGRectZero andText:@"书豆" andTextColor:COLOR(@"#909090") andBgColor:nil andFont:[UIFont systemFontOfSize:YNUM(12)] andLines:1 andRadius:0 andAddSubView:self];
        [self.downLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.topLabel.mas_bottom).offset(YNUM(5));
            make.centerX.equalTo(self);
            make.height.mas_equalTo(YNUM(14));
        }];
    }
    return self;
}
@end
